export default {
    data () {
        return {
            num: 100
        }
    },
    methods: {
        move(e) {
            console.log(e)
            this.x = e.x
            this.y = e.y
        },
        fn(){
            alert('fn')
        }
    },
    mounted () {
        document.addEventListener('mousemove',this.move)
    },
    beforeDestroy () {
        document.removeEventListener('mousemove',this.move)
    }
}